]> dgit.raspbian.org Git - gnome-shell.git/commit
quickSettings: Make parent StWidget have a 0x0 size
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 10 Nov 2022 11:06:36 +0000 (12:06 +0100)
committerMarge Bot <marge-bot@gnome.org>
Wed, 16 Nov 2022 16:51:49 +0000 (16:51 +0000)
commitbcafa512e31f2988fb9ea7cb6b37390b3c5abae9
tree639c40ebcc352a78bc18c408abaf5b00be46e5a7
parent5d390d98993249c774d0dd7e1ac52972b901d034
quickSettings: Make parent StWidget have a 0x0 size

The quick settings menu is child of an actor at 0,0 coordinates,
simply transformed to look in place. However the parent actor stays
at 0,0, and gets a width/height that is able to contain the child
menu (even though the transform will push it outside the parent
actor).

This makes the parent actor (not meant to handle pointer/touch
input) to cover parts of the shell. Since this actor is also where
the Clutter grab happens, the menu is not dismissed either.

Make this parent actor have a 0x0 size, so that it can still act
as the parent for the quick settings menu, but does not actually
cover any area. This makes clicks around the top left corner work
again while the quick settings menu is opened.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5887
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2535>
js/ui/quickSettings.js